﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200085F RID: 2143
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetTrainVisitorRegisterScRsp : IMessage<GetTrainVisitorRegisterScRsp>, IMessage, IEquatable<GetTrainVisitorRegisterScRsp>, IDeepCloneable<GetTrainVisitorRegisterScRsp>, IBufferMessage
	{
		// Token: 0x17001B0F RID: 6927
		// (get) Token: 0x06005FE0 RID: 24544 RVA: 0x000FFA23 File Offset: 0x000FDC23
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetTrainVisitorRegisterScRsp> Parser
		{
			get
			{
				return GetTrainVisitorRegisterScRsp._parser;
			}
		}

		// Token: 0x17001B10 RID: 6928
		// (get) Token: 0x06005FE1 RID: 24545 RVA: 0x000FFA2A File Offset: 0x000FDC2A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetTrainVisitorRegisterScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001B11 RID: 6929
		// (get) Token: 0x06005FE2 RID: 24546 RVA: 0x000FFA3C File Offset: 0x000FDC3C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetTrainVisitorRegisterScRsp.Descriptor;
			}
		}

		// Token: 0x06005FE3 RID: 24547 RVA: 0x000FFA43 File Offset: 0x000FDC43
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetTrainVisitorRegisterScRsp()
		{
		}

		// Token: 0x06005FE4 RID: 24548 RVA: 0x000FFA64 File Offset: 0x000FDC64
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetTrainVisitorRegisterScRsp(GetTrainVisitorRegisterScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.bICLJONPGMH_ = other.bICLJONPGMH_.Clone();
			this.visitorInfoList_ = other.visitorInfoList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06005FE5 RID: 24549 RVA: 0x000FFAB6 File Offset: 0x000FDCB6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetTrainVisitorRegisterScRsp Clone()
		{
			return new GetTrainVisitorRegisterScRsp(this);
		}

		// Token: 0x17001B12 RID: 6930
		// (get) Token: 0x06005FE6 RID: 24550 RVA: 0x000FFABE File Offset: 0x000FDCBE
		// (set) Token: 0x06005FE7 RID: 24551 RVA: 0x000FFAC6 File Offset: 0x000FDCC6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17001B13 RID: 6931
		// (get) Token: 0x06005FE8 RID: 24552 RVA: 0x000FFACF File Offset: 0x000FDCCF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> BICLJONPGMH
		{
			get
			{
				return this.bICLJONPGMH_;
			}
		}

		// Token: 0x17001B14 RID: 6932
		// (get) Token: 0x06005FE9 RID: 24553 RVA: 0x000FFAD7 File Offset: 0x000FDCD7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<TrainVisitorInfo> VisitorInfoList
		{
			get
			{
				return this.visitorInfoList_;
			}
		}

		// Token: 0x06005FEA RID: 24554 RVA: 0x000FFADF File Offset: 0x000FDCDF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetTrainVisitorRegisterScRsp);
		}

		// Token: 0x06005FEB RID: 24555 RVA: 0x000FFAF0 File Offset: 0x000FDCF0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetTrainVisitorRegisterScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && this.bICLJONPGMH_.Equals(other.bICLJONPGMH_) && this.visitorInfoList_.Equals(other.visitorInfoList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06005FEC RID: 24556 RVA: 0x000FFB54 File Offset: 0x000FDD54
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			num ^= this.bICLJONPGMH_.GetHashCode();
			num ^= this.visitorInfoList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06005FED RID: 24557 RVA: 0x000FFBAF File Offset: 0x000FDDAF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06005FEE RID: 24558 RVA: 0x000FFBB7 File Offset: 0x000FDDB7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06005FEF RID: 24559 RVA: 0x000FFBC0 File Offset: 0x000FDDC0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.visitorInfoList_.WriteTo(ref output, GetTrainVisitorRegisterScRsp._repeated_visitorInfoList_codec);
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.Retcode);
			}
			this.bICLJONPGMH_.WriteTo(ref output, GetTrainVisitorRegisterScRsp._repeated_bICLJONPGMH_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06005FF0 RID: 24560 RVA: 0x000FFC20 File Offset: 0x000FDE20
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			num += this.bICLJONPGMH_.CalculateSize(GetTrainVisitorRegisterScRsp._repeated_bICLJONPGMH_codec);
			num += this.visitorInfoList_.CalculateSize(GetTrainVisitorRegisterScRsp._repeated_visitorInfoList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06005FF1 RID: 24561 RVA: 0x000FFC84 File Offset: 0x000FDE84
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetTrainVisitorRegisterScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this.bICLJONPGMH_.Add(other.bICLJONPGMH_);
			this.visitorInfoList_.Add(other.visitorInfoList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06005FF2 RID: 24562 RVA: 0x000FFCE2 File Offset: 0x000FDEE2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06005FF3 RID: 24563 RVA: 0x000FFCEC File Offset: 0x000FDEEC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 88U)
				{
					if (num == 26U)
					{
						this.visitorInfoList_.AddEntriesFrom(ref input, GetTrainVisitorRegisterScRsp._repeated_visitorInfoList_codec);
						continue;
					}
					if (num == 88U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
				}
				else if (num == 96U || num == 98U)
				{
					this.bICLJONPGMH_.AddEntriesFrom(ref input, GetTrainVisitorRegisterScRsp._repeated_bICLJONPGMH_codec);
					continue;
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x040024DF RID: 9439
		private static readonly MessageParser<GetTrainVisitorRegisterScRsp> _parser = new MessageParser<GetTrainVisitorRegisterScRsp>(() => new GetTrainVisitorRegisterScRsp());

		// Token: 0x040024E0 RID: 9440
		private UnknownFieldSet _unknownFields;

		// Token: 0x040024E1 RID: 9441
		public const int RetcodeFieldNumber = 11;

		// Token: 0x040024E2 RID: 9442
		private uint retcode_;

		// Token: 0x040024E3 RID: 9443
		public const int BICLJONPGMHFieldNumber = 12;

		// Token: 0x040024E4 RID: 9444
		private static readonly FieldCodec<uint> _repeated_bICLJONPGMH_codec = FieldCodec.ForUInt32(98U);

		// Token: 0x040024E5 RID: 9445
		private readonly RepeatedField<uint> bICLJONPGMH_ = new RepeatedField<uint>();

		// Token: 0x040024E6 RID: 9446
		public const int VisitorInfoListFieldNumber = 3;

		// Token: 0x040024E7 RID: 9447
		private static readonly FieldCodec<TrainVisitorInfo> _repeated_visitorInfoList_codec = FieldCodec.ForMessage<TrainVisitorInfo>(26U, TrainVisitorInfo.Parser);

		// Token: 0x040024E8 RID: 9448
		private readonly RepeatedField<TrainVisitorInfo> visitorInfoList_ = new RepeatedField<TrainVisitorInfo>();
	}
}
